package main

import (
	"fmt"
	"strconv"
)

type Object struct {
	age     int
	student bool
	name    string
}

func (o *Object) toString() string {
	return "name is " + o.name + ", age is " + strconv.Itoa(o.age) + ", is student: " + strconv.FormatBool(o.student)
}

func main() {
	var o Object = Object{
		10,
		false,
		"joke",
	}

	x := &Object{
		10, true, "john",
	}

	y := &Object{
		10,false,"Mike",
	}

	fmt.Println(o.toString())
	fmt.Println(x.toString())
	fmt.Println(y.toString())

	var balance = [5]string{"0", "1", "2"}
	fmt.Println(balance)

	var s = balance[2]
	fmt.Println(s)
}
